# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-backports.shutil-get-terminal-size
pkgver=1.0.0
pkgrel=8
pkgdesc="A backport of the get_terminal_size function from Python 3.3's shutil."
url='https://pypi.org/project/backports.shutil_get_terminal_size/#files'
arch=('any')
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/backports.shutil_get_terminal_size-$pkgver.tar.gz")
sha512sums=('b74341c6616f9aace5abcc7fd657fc33801b558b6227c533002ccaf588734490b465a4a27d2bdc8047a385771afdcded610edef832dfa5ef24632f4541729050')

build() {
  cd "backports.shutil_get_terminal_size-$pkgver"

  python setup.py build
}

package() {
  cd "backports.shutil_get_terminal_size-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

